<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>


<script>
    // 使用JSON的序列化反序列化实现深拷贝

    let obj = {
        uname: "ljw",
        age: 23
    }

    let objson = JSON.stringify(obj)
    
    let objclone = JSON.parse(objson)
    console.log(objclone)
</script>
    
</body>
</html>